<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: csnf
  Date: 2024/12/26
  Time: 09:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>班级学生</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
            padding: 0;
            background-color: #f4f4f9;
        }
        a {
            text-decoration: none;
            color: #007BFF;
            font-size: 16px;
        }
        a:hover {
            text-decoration: underline;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 18px;
            text-align: left;
            background-color: #fff;
            box-shadow: 0 2px 3px rgba(0,0,0,0.1);
        }
        th, td {
            padding: 12px;
            border-bottom: 1px solid #ddd;
        }
        th {
            background-color: #f2f2f2;
            font-weight: bold;
        }
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        tr:hover {
            background-color: #f1f1f1;
        }
        .info {
            margin-bottom: 20px;
            font-size: 18px;
        }
    </style>
</head>
<body>
<div class="info">
    <a href="getAllClazzToList">返回</a><br>
    班级编号：${clazz.cId}<br>
    班级名称：${clazz.cName}<br>
    学生列表：<br>
</div>
<table>
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>性别</th>
        <th>出生</th>
    </tr>
    <c:forEach items="${clazz.students}" var="student">
        <tr>
            <td>${student.sId}</td>
            <td>${student.sName}</td>
            <td>${student.gender}</td>
            <td>${student.birth}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>

